<!--
This is the login view to the admin dashboard
-->
<h2>Please login to Admin controller site</h2>

<?php

if ($this->session->flashdata('error'))
{
    echo "<div class='messsage'>";
    echo $this->session->flashdata('error');
    echo "</div>";
}
?>
<?php

// an array to give the forms name and id
$udata = array('name' => 'username', 'id' => 'u', 'size' => 15);
$pdata = array('name' => 'password', 'id' => 'p', 'size' => 15);

echo form_open("login/verify_admin");

echo "<p><lable for='u'>Username</lable><br/>";
echo form_input($udata) . "</p>";
echo "<p><lable for='p'>Password</lable><br/>";
echo form_password($pdata) . "</p>";

echo form_submit('submit', 'login');
echo form_close();
?>
